package pri.black.dogview.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device_gps_log")
public class DeviceGpsLog {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String deviceId;

    @JSONField(name = "Longitude")
    private String longitude;

    @JSONField(name = "Latitude")
    private String latitude;

    @JSONField(name = "Altitude")
    private String altitude;
    @JSONField(name = "CoordinateSystem")
    private Integer coordinateSystem;
    @JSONField(name = "source")
    private Integer source;

    @JSONField(name = "s")
    private Integer speed;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String acc;

    @TableField(exist = false)
    private double mileage;

}
